package com.tj.collection.controller.admin.request;

import com.fqgj.common.api.ResponseData;
import org.apache.commons.lang.StringUtils;

public class DbConfigVo implements ResponseData {
    private Long id;
    /**
     * 应用名称,SYSTEM_PUBLIC、FQGJ_PUBLIC这两个是公共配置,其他以项目名称自行定义
     */
    private String applicationName;
    /**
     * 配置项Key
     */
    private String key;
    /**
     * 配置项值
     */
    private String value;
    /**
     * 注释
     */
    private String comment;

    private String businessKey;

    private Integer componentType;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getApplicationName() {
        return applicationName;
    }

    public void setApplicationName(String applicationName) {
        this.applicationName = applicationName;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getBusinessKey() {
        return businessKey;
    }

    public void setBusinessKey(String businessKey) {
        this.businessKey = businessKey;
    }

    public Integer getComponentType() {
        return componentType;
    }

    public void setComponentType(Integer componentType) {
        this.componentType = componentType;
    }

    public boolean verify() {
        return StringUtils.isNotEmpty(applicationName)
                && StringUtils.isNotEmpty(key);
    }
}
